<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>茶商后台管理</title>
  <link rel="stylesheet" href="layui-v2.4.3/layui/css/layui.css"  media="all">
</head>
<script src="layui-v2.4.3/layui/layui.js"></script>
<script src="Js/jquery-1.8.3.js"></script>
<style type="text/css">
  #table1{
  cellspacing:5px ;
  cellpadding:0px ;
  height:300px;
  }
  #table1 tr{height: 50px;font-size: 20px;}
  #table1 thead tr td{height:80px;font-size:35px;} 
</style>
<body class="layui-layout-body">
<%
	request.setCharacterEncoding("utf-8");
%>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">醉品茶城</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
     <li class="layui-nav-item"><a href="ShowUser.jsp">用户信息</a></li>
      <li class="layui-nav-item"><a href="ShowGoods.jsp">商品信息</a></li>
      <li class="layui-nav-item"><a href="ShowOrder.jsp">订单信息</a></li>
      <li class="layui-nav-item">
        <a href="javascript:;">其它系统</a>
        <dl class="layui-nav-child">
          <dd><a href="">邮件管理</a></dd>
          <dd><a href="">消息管理</a></dd>
          <dd><a href="">授权管理</a></dd>
        </dl>
      </li>
    </ul>

    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
          用户名
        </a>
      </li>
      <li class="layui-nav-item"><a href="">退出</a></li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">用户管理</a>
          <dl class="layui-nav-child">
           <dd><a href="userUpdate.jsp">用户修改</a></dd>
            <dd><a href="userDel.jsp">用户删除</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">订单管理</a>
          <dl class="layui-nav-child">
           <dd><a href="OrderUpdate.jsp">订单修改</a></dd>
            <dd><a href="OrderDel.jsp">订单删除</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
        <a href="javascript:;">商品管理</a>
          <dl class="layui-nav-child">
            <dd><a href="<%=request.getContextPath()%>/TypeServlet">商品增加</a></dd>
            <dd><a href="GoodsDel.jsp">商品操作</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">新闻管理</a>
          <dl class="layui-nav-child">
            <dd><a href="NewsInsert.jsp">新闻增加</a></dd>
           <dd><a href="NewsUpdateAndDelete.jsp">新闻操作</a></dd>           
          </dl>
        </li>
         <li class="layui-nav-item">
        <a href="javascript:;">反馈信息</a>
         <dl class="layui-nav-child">
            <dd><a href="FeedbackShowAndDelete.jsp">反馈查看和删除</a></dd>          
          </dl>
        </li>
      </ul>
    </div>
  </div>

  <div class="layui-body">
  			 <c:if test="${empty tea }">
				<jsp:forward page="../TeaServlet?opt=sel1"></jsp:forward>
			</c:if> 
    <!-- 内容主体区域 -->
    <form name ="dataForm" id="dataForm" action="../TeaServlet?opt=update&id=${tea.id }" method="post" enctype="multipart/form-data">
        <table id="table1">
          <thead>
            <tr><td align="center" colspan="2" class="text_tabledetail2">修改商品</td></tr>
          </thead>
          <tbody>
          <c:if test="${empty typelist }">
			<jsp:forward page="../TypeServlet"></jsp:forward>
		  </c:if>
          <tr>
              <td ><span>&nbsp;品&nbsp;种&nbsp;id:</span>
              <select name="typeid">
                <option value='a'>选择</option>
              <c:forEach var="type" items="${typelist }"> 
              	<option value='${type.id }'>${type.name }</option>
              </c:forEach>
                </select></td>
              <td ><span>&nbsp;品&nbsp;牌&nbsp;id:</span>
              <select name="brandid">
                <option value='a'>选择</option>
              <c:forEach var="brand" items="${brandlist }">
              	<option value='${brand.id }'>${brand.name}</option>
              </c:forEach>
                </select></td>
            </tr><br>
             <tr>
              <td ><span>茶叶编号:</span><input type="text" name="teano" value="${tea.teano}"></td>
              <td ><span>&nbsp;茶&nbsp;叶&nbsp;名:</span><input type="text" name="name"  value="${tea.name}"></td>
              <td ><span>&nbsp;&nbsp;&nbsp;价&nbsp;&nbsp;&nbsp;格:</span><input type="text" name="price"  value="${tea.price}"></td>
            </tr><br>
           <tr>
             <td class="text_tabledetail2"><span>&nbsp;&nbsp;&nbsp;&nbsp;库&nbsp;&nbsp;&nbsp;存:</span><input type="text" name="stock" value="${tea.stock}"></td>
             <td class="text_tabledetail2"><span>茶叶规格:</span><input type="text" name="spec"  value="${tea.spec}"></td>
             <td class="text_tabledetail2"><span>包装工艺:</span><input type="text" name="packspec" value="${tea.packspec}"></td>
            </tr><br>
             <tr>
              <td class="text_tabledetail2"><span>许可证明:</span><input type="text" name="licenseno"  value="${tea.licenseno}"></td>
              <td class="text_tabledetail2"><span>采摘季节:</span><input type="text" name="season" value="${tea.season}"></td>
              <td class="text_tabledetail2"><span>制作工艺:</span><input type="text" name="tech" value="${tea.tech}"></td>
            </tr><br>
            <tr>
              <td class="text_tabledetail2"><span>&nbsp;&nbsp;&nbsp;&nbsp;产&nbsp;&nbsp;&nbsp;地:</span><input type="text" name="proloc" value="${tea.proloc}"></td>
              <td class="text_tabledetail2"><span>生产日期:</span><input type="text" name="producedate" value="${tea.producedate}"></td>
              <td class="text_tabledetail2"><span>&nbsp;&nbsp;保&nbsp;质期:</span><input type="text" name="bzq" value="${tea.bzq}"></td>
            </tr>
            <tr>
              <td class="text_tabledetail2"><br><span>产品介绍：</span><br><br><textarea class="layui-textarea" name="shortinfo">${tea.shortinfo}</textarea></td>
            </tr> 
          </tbody>
       </table>
       <br>
       <input type="reset" name="" class="layui-btn" style="margin-left:390px" value="重置">
       <input type="submit" name="" class="layui-btn" value="提交">
     </form>


  </div>
    <!-- 底部区域 -->
  <div class="layui-footer" style="text-align:center">
    © chachegn.com - 醉品商城
  </div>
</div>
<script>
//JavaScript代码区域：左侧的下拉列表
layui.use('element', function(){
  var element = layui.element;
});
</script>
</body>
</html>